`(window-width (frame-root-window))` throws an error when the frame is
split (frame's root window is not live).
(if (member which-key-side-window-location '(left right))
(which-key/total-width-to-text (which-key/width-or-percentage-to-width
which-key-side-window-max-width))
- (window-width (frame-root-window)))))
+ (frame-width))))
(defun which-key/frame-max-dimensions ()
(cons which-key-frame-max-height which-key-frame-max-width))